import Vue from 'vue'
import Vuex from 'vuex'

import mutations from './mutations.js'
import actions from './actions.js'

import getters from './getters.js'

//1.安装插件
Vue.use(Vuex)

const state = {
	cartList: []
}

//2.创建Store实例
const store = new Vuex.Store({
	state,
	mutations,
	actions,
	getters
})

//3.导出store
export default store

